package bean;

import java.io.Serializable;
import java.util.List;
import java.util.UUID;

/**
 * Created by likang on 2017/7/12.
 */
public class TradeAccountConsumptionFlow  implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 所属餐厅
     */
    private String restaurant;
    /**
     * 所属餐次
     */
    private String mealTime;
    /**
     * POS机
     */
    private String posMachine;
    /**
     * 所属顾客
     */
    private String customer;
    /**
     * 所属账户
     */
    private String accountId;
    /**
     * 刷卡卡号
     */
    private String card;
    /**
     * 操作类型(0:消费 1:退菜 2：赠菜)
     */
    private String operateType;
    /**
     * 结算类型
     */
    private String settlementType;
    /**
     * 流水单号
     */
    private String flowNo;
    /**
     * 操作前金额
     */
    private Double beforeAmount;
    /**
     * 操作(增减)金额
     */
    private Double actualAmount;
    /**
     * 操作后金额
     */
    private Double afterAmount;
    /**
     * 折扣金额
     */
    private Double discountAmount;
    /**
     * 操作前次数
     */
    private Integer beforeTimes;
    /**
     * 操作(增减)次数
     */
    private Integer times;
    /**
     * 操作后次数
     */
    private Integer afterTimes;
    /**
     * 操作原因(冲账用)
     */
    //	private ConfigCause reason;
    private String reason;
    /**
     * 是否开具发票(0:否1:是)
     */
    private String isPay;
    /**
     * 创建人(操作人)
     */
    private String creatorId;
    /**
     * 创建人姓名
     */
    private String creatorName;
    /**
     * 创建时间
     */
    private String createTime;



    private String isXmlOut;//是否已导出xml


    private String orderStatus="0";

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    private List<TradeConsumptionMain> mainLists;

    public String getId() {
        if (id == null) id = UUID.randomUUID().toString().replace("-", "");
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRestaurant() {
        return restaurant;
    }

    public void setRestaurant(String restaurant) {
        this.restaurant = restaurant;
    }

    public String getMealTime() {
        return mealTime;
    }

    public void setMealTime(String mealTime) {
        this.mealTime = mealTime;
    }

    public String getPosMachine() {
        return posMachine;
    }

    public void setPosMachine(String posMachine) {
        this.posMachine = posMachine;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public String getSettlementType() {
        return settlementType;
    }

    public void setSettlementType(String settlementType) {
        this.settlementType = settlementType;
    }

    public String getFlowNo() {
        return flowNo;
    }

    public void setFlowNo(String flowNo) {
        this.flowNo = flowNo;
    }

    public Double getBeforeAmount() {
        return beforeAmount;
    }

    public void setBeforeAmount(Double beforeAmount) {
        this.beforeAmount = beforeAmount;
    }

    public Double getActualAmount() {
        return actualAmount;
    }

    public void setActualAmount(Double actualAmount) {
        this.actualAmount = actualAmount;
    }

    public Double getAfterAmount() {
        return afterAmount;
    }

    public void setAfterAmount(Double afterAmount) {
        this.afterAmount = afterAmount;
    }

    public Double getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(Double discountAmount) {
        this.discountAmount = discountAmount;
    }

    public Integer getBeforeTimes() {
        return beforeTimes;
    }

    public void setBeforeTimes(Integer beforeTimes) {
        this.beforeTimes = beforeTimes;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Integer getAfterTimes() {
        return afterTimes;
    }

    public void setAfterTimes(Integer afterTimes) {
        this.afterTimes = afterTimes;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getIsPay() {
        return isPay;
    }

    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }


    public String getIsXmlOut() {
        return isXmlOut;
    }

    public void setIsXmlOut(String isXmlOut) {
        this.isXmlOut = isXmlOut;
    }

    public List<TradeConsumptionMain> getMainLists() {
        return mainLists;
    }

    public void setMainLists(List<TradeConsumptionMain> mainLists) {
        this.mainLists = mainLists;
    }
}
